<template>
  <div>
    <Header />
    <el-row type="flex" justify="center">
      <el-col :span="16">
        <el-card>
          <el-form>
            <el-form-item>
              <el-input
                class="title"
                v-model="input"
                placeholder="请输入标题"
              ></el-input>
            </el-form-item>
            <el-form-item>
              <el-input
                class="title"
                v-model="input"
                placeholder="请输入博客简介"
              ></el-input>
            </el-form-item>
            <el-form-item>
              <el-input
                class="title"
                v-model="input"
                placeholder="博客分类，多个分类用逗号隔开"
              ></el-input>
            </el-form-item>
            <el-form-item>
              <quill-editor> </quill-editor>
            </el-form-item>
            <el-form-item   class="text-align-center">
                <el-button type="primary"  @click="commitBlog">发布</el-button>
                <el-button type="danger"   @click="giveUpBlog" >放弃</el-button>
            </el-form-item>
          </el-form>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Header from "@/components/Header.vue";
export default {
  components: {
    Header
  }
};
</script>

<style scoped>
.text-align-center {
  text-align: center;
}
</style>